package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 乡镇
 * </p>
 *
 * @author dongjiming
 * @since 2018-08-16
 */
@TableName("cs_town")
public class Town extends Model<Town> {

    private static final long serialVersionUID = 1L;

    /**
     * 乡镇ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 乡镇名称
     */
    @TableField("town_name")
    private String townName;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Boolean isDeleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Boolean getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Town{" +
        "id=" + id +
        ", townName=" + townName +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
